<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="__PUBLIC__/css/public.css" />
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/public.js"></script>	
</head>
<body>
	<table class="table">
		<tr>
			<td class="th" colspan="10">查看博文</td>
		</tr>
		<tr>
			<td class="tdLittle1">AID</td>
			<td>标题</td>
			<td class="tdLittle2">栏目名称</td>
			<td class="tdLtitle3">查看次数</td>
			<td class="tdLtitle4">创作时间</td>
			<td class="tdLtitle7">操作</td>
		</tr>
		<list from="$article" name="n">
			<tr>
				<td >{$n.aid}</td>
				<if value="{$n.istop} eq 1">
					<td>{$n.title} <span style="color:red">[置顶]</span></td>
				<else/>
					<td>{$n.title}</td>
				</if>
				<td><a href="{|u('article',array('cid'=>$n['cid']))}">{$n.cname}</a></td>
				<td>{$n.click}</td>
				<td>{$n.time|date:'Y-m-d',@@}</td>
				<td>
					<if value="{$n.istop} eq 0">
						<a href="{|u('top',array('aid'=>$n['aid'],'w'=>1))}">[置顶]</a>
					<else/>
						<a href="{|u('top',array('aid'=>$n['aid']))}">[取消置顶]</a>
						
					</if>
					<a href="{|u('edit',array('aid'=>$n['aid']))}">[编辑]</a>
					<a href="{|u('del',array('aid'=>$n['aid']))}">[删除]</a>
				</td>
			</tr>
		</list>
	</table>
	<div class="page">
		{$page}	
	</div>
</body>
</html>